<!DOCTYPE html>
<html lang="en">
<head>
    <title>我的消息</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/style.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/ipad.css">
    <link rel="stylesheet" type="text/css" href="__STATIC__/yt_css/iphone.css">
    <script type="text/javascript" src="__STATIC__/yt_js/jquery-1.9.0.min.js"></script>
    <script src="__PUBLIC__/js/layer/layer-min.js"></script>
    <script src="__PUBLIC__/js/pc_common.js"></script>
</head>
<body class="body">
<div class="container">
    <include file="user/new_header"/>
    <div class="message">
        <div class="xtxx">
            我的消息
            <img src="__STATIC__/yt_images/message.png" alt="">
            <span></span>
        </div>
        <ul class="message_list">

        </ul>
        <div class="fn_page clearfix">
            {$page}
        </div>
    </div>
    <include file="public/new_footer"/>
</div>

<script type="text/javascript">
    $(function () {
        ajax_message();
        $('.wddd-li ul li a').click(function () {
            $(this).addClass('red').parent().siblings('li').find('a').removeClass('red');
        });
        $(document).ready(function () {
            var height = $(window).height()-360;
            $('.message').css('min-height',height)
        })
    });
    /**
     * @author dyr
     * 消息ajax请求
     * @param type
     */
    function ajax_message() {
        $.ajax({
            type: "POST",
            url: "{:U('Home/User/ajax_message_notice')}",
            data: {type: 0},
            success: function (data) {
                if (data) {
                    $(".message_list").html('');
                    $(".message_list").append(data);
                } else {
                    $(".message_list").html('');
                }
            }
        });
    }
</script>

</body>

</html>